package com.example.demo.pattern;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class Test {


    private int  type;

    @org.junit.Test
    public void test() {
        Pattern phonePattern = Pattern.compile("^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\\d{8}$");

        Matcher matcher = phonePattern.matcher("aaaaa");
        System.out.println(matcher.matches());

    }
}
